package com.example.utils;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author:郭
 * @Description: TODO
 * @Date: 2022/12/16 16:08
 * @ClassName InterceptorConfig
 */
public class InterceptorConfig implements WebMvcConfigurer {
    /**
     * @Author: 郭
     * @Date: 2022/12/16 16:08
     * @Param: registry
     * @Return: void
     * 资源映射到本地路径
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry){
        registry.addResourceHandler("/assets/**")
                .addResourceLocations("file:D:/wenjian/项目/思云/项目/Sp_Vue/SiyunVue/siyun/src/assets/");
    }

}
